message = "wangbo is a good man"

total = 0
for m in message:
    if m =='a':
        total += 1

print(f"字符串{message}中已经有{total}个a")